#ifndef MYSERVER_H
#define MYSERVER_H

#include <QObject>
#include<QThread>
#include<QTcpSocket>
class MyServer : public QThread
{
    Q_OBJECT
public:
    explicit MyServer(QTcpSocket *socket1,QObject *parent = nullptr);

protected:
    void run();
public slots:

signals:
    void over();
private:
    QTcpSocket *socket;

};

#endif // MYSERVER_H
